package de.puc.defencetower.view.gui;

import java.util.Timer;
import java.util.TimerTask;

public class GuiFPSTimer extends Timer{

	private final GUIWindow mapWindow;

	private final static long FPS_TIME = 250;

	public GuiFPSTimer(final GUIWindow mapwindow) {
		this.mapWindow = mapwindow;
	}

	public void start(){
		schedule(new TimerTask() {

			@Override
			public void run() {
				mapWindow.print();
			}
		}, 0, FPS_TIME);

	}
}
